<template>
<div>钉钉</div>
</template>

<script setup lang="ts">
import { useMobileCode } from '@/composables'
import { loginByMobile, loginByPassword, getddurl } from '@/services/user'
import { useUserStore } from '@/stores'
import { codeRules, mobileRules, passwordRules } from '@/utils/rules'
import { showSuccessToast, showToast } from 'vant'
import { ref,onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'

const mobile = ref('13211112222')
const password = ref('abc12345')
const agree = ref(false)
const store = useUserStore()
const router = useRouter()
const route = useRoute()

onMounted( () => {
  store.setUser({"id":route.query.userid,'token':route.query.token})
  router.replace((route.query.returnUrl as string) || '/home')
})
</script>

<style scoped>

</style>